400 |
Can I change the format of date to be shown in the control
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns,com_Items; anytype var_Column,var_Column1,var_Column2,var_Columns,var_Items; str var_s; ; super(); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("Default"); var_Column = COM::createFromVariant(com_Columns.Add("Format.1")); com_Column = var_Column; com_Column.ComputedField("%0"); com_Column.FormatColumn("dateF(value) replace `/` with `-`"); var_Column1 = COM::createFromVariant(com_Columns.Add("Format.2")); com_Column1 = var_Column1; com_Column1.ComputedField("%0"); com_Column1.Def(17/*exCaptionFormat*/,COMVariant::createFromInt(1)); com_Column1.FormatColumn("`<b>`+ shortdate(value) + `</b> ` + timeF(value)"); var_Column2 = COM::createFromVariant(com_Columns.Add("Format.3")); com_Column2 = var_Column2; com_Column2.ComputedField("%0"); com_Column2.Def(17/*exCaptionFormat*/,COMVariant::createFromInt(1)); var_s = "( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `F"; var_s = var_s + "r`; 6 : `Sa`) )"; com_Column2.FormatColumn(var_s); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213))); com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("1/2/2001 10:00:00",213))); } |
399 |
How can I put a picture on the cell's background (method 3)
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int i; ; super(); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exlist1.VisualAppearance().Add(2,"CP:1 0 0 -164 0"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("column"); var_Column = COM::createFromVariant(com_Columns.Add("column")); com_Column = var_Column; com_Column.Alignment(1/*CenterAlignment*/); com_Column.HeaderAlignment(1/*CenterAlignment*/); var_Items = exlist1.Items(); com_Items = var_Items; i = com_Items.Add(); com_Items.SelectableItem(i,false); com_Items.Caption(i,COMVariant::createFromInt(1),"caption"); com_Items.CellBackColor(i,COMVariant::createFromInt(1),0x2000000); } |
398 |
How can I put a picture on the cell's background (method 2)
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int i; ; super(); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("column"); com_Columns.Add("column"); var_Items = exlist1.Items(); com_Items = var_Items; i = com_Items.Add(); com_Items.SelectableItem(i,false); com_Items.Caption(i,COMVariant::createFromInt(1),"caption"); com_Items.CellBackColor(i,COMVariant::createFromInt(1),0x1000000); com_Items.CellPicture(i,COMVariant::createFromInt(1),COM::createFromVariant(exlist1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"))); com_Items.CellPictureWidth(i,COMVariant::createFromInt(1),128); com_Items.CellPictureHeight(i,COMVariant::createFromInt(1),exlist1.DefaultItemHeight()); } |
397 |
How can I put a picture on the cell's background (method 1)
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int i; ; super(); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("column"); var_Column = COM::createFromVariant(com_Columns.Add("column")); com_Column = var_Column; com_Column.Alignment(1/*CenterAlignment*/); com_Column.HeaderAlignment(1/*CenterAlignment*/); var_Items = exlist1.Items(); com_Items = var_Items; i = com_Items.Add(); com_Items.SelectableItem(i,false); com_Items.Caption(i,COMVariant::createFromInt(1),"caption"); com_Items.CellBackColor(i,COMVariant::createFromInt(1),0x1000000); } |
396 |
How do I access the cells, or how do I get the values in the columns
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h; ; super(); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("C1"); com_Columns.Add("C2"); com_Columns.Add("C3"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.Caption(h,COMVariant::createFromInt(1),"SubItem 1.1"); com_Items.Caption(h,COMVariant::createFromInt(2),"SubItem 1.2"); print( com_Items.Caption(h,COMVariant::createFromInt(2)) ); } |
395 |
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)
public void init() { COM com_Columns,com_ConditionalFormat,com_ConditionalFormat1,com_Items; anytype var_Columns,var_ConditionalFormat,var_ConditionalFormat1,var_Items; ; super(); exlist1.BeginUpdate(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("1","K1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(1); var_ConditionalFormat1 = COM::createFromObject(exlist1.ConditionalFormats()).Add("1","K2"); com_ConditionalFormat1 = var_ConditionalFormat1; com_ConditionalFormat1.BackColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat1.ApplyTo(2); exlist1.MarkSearchColumn(false); exlist1.DrawGridLines(-2/*0xfffffffe | exVLines*/); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); com_Columns.Add("Column 2"); com_Columns.Add("Column 3"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add(); com_Items.Add(); com_Items.Add(); exlist1.EndUpdate(); } |
394 |
How can I get the list of items as they are displayed
|
393 |
Is posible to reduce the size of the picture to be shown in the column's caption
public void init() { ; super(); exlist1.BeginUpdate(); exlist1.HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif"); exlist1.HeaderHeight(48); COM::createFromVariant(exlist1.Columns().Add("DefaultSize")).HTMLCaption("Default-Size <img>pic1</img> Picture"); COM::createFromVariant(exlist1.Columns().Add("CustomSize")).HTMLCaption("Custom-Size <img>pic1:16</img> Picture"); exlist1.EndUpdate(); } |
392 |
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column
|
391 |
Is it possible to limit the height of item while resizing the row
// AddItem event - Occurs after a new Item is inserted to Items collection. void onEvent_AddItem(int _Item) { ; exlist1.Items().ItemMinHeight(_Item,18); exlist1.Items().ItemMaxHeight(_Item,72); } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); exlist1.BeginUpdate(); exlist1.ItemsAllowSizing(-1/*exResizeItem*/); exlist1.ScrollBySingleLine(false); exlist1.BackColorAlternate(WinApi::RGB2int(240,240,240)); exlist1.Columns().Add("Names"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Mantel"); com_Items.Add("Mechanik"); com_Items.Add("Motor"); com_Items.Add("Murks"); com_Items.Add("Märchen"); com_Items.Add("Möhren"); com_Items.Add("Mühle"); var_Column = COM::createFromObject(exlist1.Columns()).Item(COMVariant::createFromInt(0)); com_Column = var_Column; com_Column.SortOrder(1/*SortAscending*/); exlist1.EndUpdate(); } |
390 |
Can I specify un-sortable items so they keep their position once the user sorts the columns
|
389 |
The item is not getting selected when clicking the cell's checkbox. What should I do
|
388 |
Does your control supports multiple lines tooltip
|
387 |
How can I prevent highlighting the column from the cursor - point
public void init() { str var_s; ; super(); var_s = "gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJg"; var_s = var_s + "EgI="; exlist1.VisualAppearance().Add(1,COMVariant::createFromStr(var_s)); exlist1.Background(32/*exCursorHoverColumn*/,0x1000000); COM::createFromVariant(exlist1.Columns().Add("S")).Width(32); COM::createFromVariant(exlist1.Columns().Add("Level 1")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("Level 2")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("Level 3")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(exlist1.Columns().Add("E1")).Width(32); COM::createFromVariant(exlist1.Columns().Add("E2")).Width(32); COM::createFromVariant(exlist1.Columns().Add("E3")).Width(32); COM::createFromVariant(exlist1.Columns().Add("E4")).Width(32); } |
386 |
Is there any option to show the tooltip programmatically
|
385 |
Is it possible to prevent covering the colors by selected rows
|
384 |
Can I use PNG images to display pictures in the control
|
383 |
Does your control support conditional format and computed fields
public void init() { COM com_Column,com_Column1,com_Column2,com_Column3,com_Columns,com_ConditionalFormat,com_ConditionalFormat1,com_ConditionalFormat2,com_ConditionalFormats,com_Items; anytype var_Column,var_Column1,var_Column2,var_Column3,var_Columns,var_ConditionalFormat,var_ConditionalFormat1,var_ConditionalFormat2,var_ConditionalFormats,var_Items; int h1; ; super(); exlist1.BeginUpdate(); exlist1.MarkSearchColumn(false); var_ConditionalFormats = exlist1.ConditionalFormats(); com_ConditionalFormats = var_ConditionalFormats; var_ConditionalFormat = com_ConditionalFormats.Add("%1 >4"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.StrikeOut(true); com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(1); var_ConditionalFormat1 = com_ConditionalFormats.Add("%2 > 4"); com_ConditionalFormat1 = var_ConditionalFormat1; com_ConditionalFormat1.Bold(true); com_ConditionalFormat1.StrikeOut(true); com_ConditionalFormat1.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat1.ApplyTo(2); var_ConditionalFormat2 = com_ConditionalFormats.Add("%3 > 4"); com_ConditionalFormat2 = var_ConditionalFormat2; com_ConditionalFormat2.Bold(true); com_ConditionalFormat2.StrikeOut(true); com_ConditionalFormat2.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat2.ApplyTo(3); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("Name"); var_Column = COM::createFromVariant(com_Columns.Add("A")); com_Column = var_Column; com_Column.SortType(1/*SortNumeric*/); com_Column.AllowSizing(false); com_Column.Width(36); com_Column.FormatColumn("len(value) ? value + ' +'"); var_Column1 = COM::createFromVariant(com_Columns.Add("B")); com_Column1 = var_Column1; com_Column1.SortType(1/*SortNumeric*/); com_Column1.AllowSizing(false); com_Column1.Width(36); com_Column1.FormatColumn("len(value) ? value + ' +'"); var_Column2 = COM::createFromVariant(com_Columns.Add("C")); com_Column2 = var_Column2; com_Column2.SortType(1/*SortNumeric*/); com_Column2.AllowSizing(false); com_Column2.Width(36); com_Column2.FormatColumn("len(value) ? value + ' ='"); var_Column3 = COM::createFromVariant(com_Columns.Add("A+B+C")); com_Column3 = var_Column3; com_Column3.SortType(1/*SortNumeric*/); com_Column3.AllowSizing(false); com_Column3.Width(64); com_Column3.ComputedField("%1+%2+%3"); com_Column3.FormatColumn("((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)"); com_Column3.Def(17/*exCaptionFormat*/,COMVariant::createFromInt(1)); var_Items = exlist1.Items(); com_Items = var_Items; h1 = com_Items.Add("Item 1"); com_Items.Caption(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(7)); com_Items.Caption(h1,COMVariant::createFromInt(2),COMVariant::createFromInt(3)); com_Items.Caption(h1,COMVariant::createFromInt(3),COMVariant::createFromInt(1)); h1 = com_Items.Add("Item 2"); com_Items.Caption(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); com_Items.Caption(h1,COMVariant::createFromInt(2),COMVariant::createFromInt(5)); com_Items.Caption(h1,COMVariant::createFromInt(3),COMVariant::createFromInt(12)); h1 = com_Items.Add("Item 3"); com_Items.Caption(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); com_Items.Caption(h1,COMVariant::createFromInt(2),COMVariant::createFromInt(2)); com_Items.Caption(h1,COMVariant::createFromInt(3),COMVariant::createFromInt(4)); h1 = com_Items.Add("Item 4"); com_Items.Caption(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2)); com_Items.Caption(h1,COMVariant::createFromInt(2),COMVariant::createFromInt(9)); com_Items.Caption(h1,COMVariant::createFromInt(3),COMVariant::createFromInt(4)); exlist1.EndUpdate(); } |
382 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
381 |
Can I display the cell's check box after the text
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; ; super(); var_Column = COM::createFromVariant(exlist1.Columns().Add("Column")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.Def(34/*exCellDrawPartsOrder*/,"caption,check"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.CellHasCheckBox(com_Items.Add("Caption 1"),COMVariant::createFromInt(0),true); com_Items.CellHasCheckBox(com_Items.Add("Caption 2"),COMVariant::createFromInt(0),true); } |
380 |
Can I change the order of the parts in the cell, as checkbox after the text, and so on
|
379 |
Can I have an image displayed after the text. Can I get that effect without using HTML content
|
378 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
377 |
How can I change the foreground color for a particular column
|
376 |
How can I change the background color for a particular column
|
375 |
How can I display the column using currency format and enlarge the font for certain values
|
374 |
How can I highlight only parts of the cells
|
373 |
How can I get the number of occurrences of a specified string in the cell
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exlist1.Columns().Add(""); var_Column = COM::createFromVariant(exlist1.Columns().Add("occurrences")); com_Column = var_Column; com_Column.ComputedField("lower(%0) count 'o'"); com_Column.FormatColumn("'contains ' + value + ' of \\'o\\' chars'"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Root"); com_Items.Add("Child 1 oooof the root"); com_Items.Add("Child 2"); com_Items.Add("Child 3"); } |
372 |
How can I display dates in my format
|
371 |
How can I display dates in short format
|
370 |
How can I display dates in long format
|
369 |
How can I display only the right part of the cell
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exlist1.Columns().Add(""); var_Column = COM::createFromVariant(exlist1.Columns().Add("Right")); com_Column = var_Column; com_Column.ComputedField("%0 right 2"); com_Column.FormatColumn("'\"' + value + '\"'"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Root"); com_Items.Add("Child 1"); com_Items.Add("Child 2"); com_Items.Add("SChild 3"); } |
368 |
How can I display only the left part of the cell
|
367 |
How can I display true or false instead 0 and -1
|
366 |
How can I display icons or images instead numbers
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exlist1.Images(COMVariant::createFromStr(var_s)); var_Column = COM::createFromVariant(exlist1.Columns().Add("Icons")); com_Column = var_Column; com_Column.Def(17/*exCaptionFormat*/,COMVariant::createFromInt(1)); com_Column.FormatColumn("'The cell displays the icon <img>'+value+'</img> instead ' + value"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add(COMVariant::createFromInt(1)); com_Items.Add(COMVariant::createFromInt(2)); com_Items.Add(COMVariant::createFromInt(3)); } |
365 |
How can I display the column using currency
|
364 |
Is is possible to use HTML tags to display in the filter caption
|
363 |
How can I find the number of items after filtering
|
362 |
How can I change the filter caption
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(12801/*exFilterPromptWords | exFilterPromptContainsAll*/); exlist1.FilterBarPromptPattern("london robert"); exlist1.FilterBarCaption("<r>Found: ... "); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
361 |
While using the filter prompt is it is possible to use wild characters
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(16/*exFilterPromptPattern*/); exlist1.FilterBarPromptPattern("lon* seat*"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
360 |
How can I list all items that contains any of specified words, not necessary at the beggining
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(4610/*exFilterPromptStartWords | exFilterPromptContainsAny*/); exlist1.FilterBarPromptPattern("london davolio"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
359 |
How can I list all items that contains any of specified words, not strings
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(12802/*exFilterPromptWords | exFilterPromptContainsAny*/); exlist1.FilterBarPromptPattern("london nancy"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
358 |
How can I list all items that contains all specified words, not strings
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(12801/*exFilterPromptWords | exFilterPromptContainsAll*/); exlist1.FilterBarPromptPattern("london robert"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
357 |
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(258/*exFilterPromptCaseSensitive | exFilterPromptContainsAny*/); exlist1.FilterBarPromptPattern("Anne"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
356 |
Is it possible to list only items that ends with any of specified strings
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(4/*exFilterPromptEndWith*/); exlist1.FilterBarPromptColumns("0"); exlist1.FilterBarPromptPattern("Fuller"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
355 |
Is it possible to list only items that ends with any of specified strings
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(4/*exFilterPromptEndWith*/); exlist1.FilterBarPromptColumns("0"); exlist1.FilterBarPromptPattern("Fuller"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
354 |
Is it possible to list only items that starts with any of specified strings
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(3/*exFilterPromptStartWith*/); exlist1.FilterBarPromptColumns("0"); exlist1.FilterBarPromptPattern("An M"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
353 |
Is it possible to list only items that starts with specified string
public void init() { COM com_Columns,com_Items; anytype var_Columns,var_Items; int h0; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPromptType(3/*exFilterPromptStartWith*/); exlist1.FilterBarPromptColumns("0"); exlist1.FilterBarPromptPattern("A"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); var_Items = exlist1.Items(); com_Items = var_Items; h0 = com_Items.Add("Nancy Davolio"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Andrew Fuller"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Vice President, Sales"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Tacoma"); com_Items.SelectItem(h0,true); h0 = com_Items.Add("Janet Leverling"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Kirkland"); h0 = com_Items.Add("Margaret Peacock"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Redmond"); h0 = com_Items.Add("Steven Buchanan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Manager"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Michael Suyama"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Robert King"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); h0 = com_Items.Add("Laura Callahan"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Inside Sales Coordinator"); com_Items.Caption(h0,COMVariant::createFromInt(2),"Seattle"); h0 = com_Items.Add("Anne Dodsworth"); com_Items.Caption(h0,COMVariant::createFromInt(1),"Sales Representative"); com_Items.Caption(h0,COMVariant::createFromInt(2),"London"); exlist1.EndUpdate(); } |
352 |
How can I specify that the list should include any of the seqeunces in the pattern
|
351 |
How can I specify that all sequences in the filter pattern must be included in the list
|
350 |
How do I change at runtime the filter prompt
|
349 |
How do I specify to filter only a single column when using the filter prompt
|
348 |
How do I change the prompt or the caption being displayed in the filter bar
public void init() { COM com_Columns; anytype var_Columns; ; super(); exlist1.BeginUpdate(); exlist1.ColumnAutoResize(true); exlist1.ContinueColumnScroll(0); exlist1.MarkSearchColumn(false); exlist1.SearchColumnIndex(1); exlist1.FilterBarPromptVisible(true); exlist1.FilterBarPrompt("changed"); var_Columns = exlist1.Columns(); com_Columns = var_Columns; COM::createFromVariant(com_Columns.Add("Name")).Width(96); COM::createFromVariant(com_Columns.Add("Title")).Width(96); com_Columns.Add("City"); exlist1.EndUpdate(); } |
347 |
How do I enable the filter prompt feature
|
346 |
Is it possible to change the style for the vertical or horizontal grid lines, in the list area
|
345 |
Is it possible to change the style for the grid lines, for instance to be solid not dotted
|
344 |
How can I filter programatically using more columns
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exlist1.BeginUpdate(); exlist1.MarkSearchColumn(false); var_Columns = exlist1.Columns(); com_Columns = var_Columns; com_Columns.Add("Car"); com_Columns.Add("Equipment"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Caption(com_Items.Add("Mazda"),COMVariant::createFromInt(1),"Air Bag"); com_Items.Caption(com_Items.Add("Toyota"),COMVariant::createFromInt(1),"Air Bag,Air condition"); com_Items.Caption(com_Items.Add("Ford"),COMVariant::createFromInt(1),"Air condition"); com_Items.Caption(com_Items.Add("Nissan"),COMVariant::createFromInt(1),"Air Bag,ABS,ESP"); com_Items.Caption(com_Items.Add("Mazda"),COMVariant::createFromInt(1),"Air Bag, ABS,ESP"); com_Items.Caption(com_Items.Add("Mazda"),COMVariant::createFromInt(1),"ABS,ESP"); var_Column = COM::createFromObject(exlist1.Columns()).Item("Car"); com_Column = var_Column; com_Column.FilterType(240/*exFilter*/); com_Column.Filter("Mazda"); var_Column1 = COM::createFromObject(exlist1.Columns()).Item("Equipment"); com_Column1 = var_Column1; com_Column1.FilterType(3/*exPattern*/); com_Column1.Filter("*ABS*|*ESP*"); exlist1.ApplyFilter(); exlist1.EndUpdate(); } |
343 |
How do I find an item based on my extra data
|
342 |
How do I print the control's content
public void init() { COM com_Items,com_Print; anytype var_Items,var_Print; ; super(); exlist1.BeginUpdate(); exlist1.Columns().Add("Number"); COM::createFromVariant(exlist1.Columns().Add("Currency")).ComputedField("len(%0) ? currency(dbl(%0)) : ''"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("1.23"); com_Items.Add("2.34"); com_Items.Add("0"); com_Items.ItemBackColor(com_Items.Add(),WinApi::RGB2int(255,128,128)); com_Items.Add("10000.99"); exlist1.EndUpdate(); // Add 'exprint.dll(ExPrint.dll)' reference to your project. // Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project. var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print; com_Print.PrintExt(exlist1); com_Print.Preview(); } |
341 |
How can I display the currency only for not empty cells
|
340 |
Is there a function to display the number of days between two date including the number of hours
|
339 |
Is there a function to display the number of days between two date including the number of hours
|
338 |
How can I display the number of days between two dates
|
337 |
How can I get second part of the date
|
336 |
How can I get minute part of the date
|
335 |
How can I check the hour part only so I know it was afternoon
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("hour(%0)>=12"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); exlist1.Columns().Add("Date"); COM::createFromVariant(exlist1.Columns().Add("Hour")).ComputedField("hour(%0)"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:00:00",213))); com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:00:00",213))); com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:00:00",213))); com_Items.Add(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:00:00",213))); } |
334 |
What about a function to get the day in the week, or days since Sunday
|
333 |
Is there any function to get the day of the year or number of days since January 1st
|
332 |
How can I display only the day of the date
|
331 |
How can I display only the month of the date
|
330 |
How can I get only the year part from a date expression
|
329 |
Can I convert the expression to date
|
328 |
Can I convert the expression to a number, double or float
|
327 |
How can I display dates in long format
|
326 |
How can I display dates in short format
|
325 |
How can I display the time only of a date expression
|
324 |
Is there any function to display currencies, or money formatted as in the control panel
|
323 |
How can I convert the expression to a string so I can look into the date string expression for month's name
|
322 |
Can I display the absolute value or positive part of the number
|
321 |
Is there any function to get largest number with no fraction part that is not greater than the value
|
320 |
Is there any function to round the values base on the .5 value
|
319 |
How can I get or display the integer part of the cell
|
318 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
|
317 |
Is there any option to display cells in uppercase
|
316 |
Is there any option to display cells in lowercase
|
315 |
How can I mark the cells that has a specified type, ie strings only
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; int h; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("type(%0) = 8"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); exlist1.Columns().Add(""); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add(COMVariant::createFromInt(2)); com_Items.Add("Item 4 - child"); } |
314 |
How can I bold the items that contains data or those who displays empty strings
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; int h,hC; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("not len(%1)=0"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); exlist1.Columns().Add("C1"); exlist1.Columns().Add("C2"); var_Items = exlist1.Items(); com_Items = var_Items; h = com_Items.Add("Item 1"); com_Items.Add("Item 2"); hC = com_Items.Add("Item 3"); com_Items.Caption(hC,COMVariant::createFromInt(1),"1"); com_Items.Add("Item 3"); } |
313 |
Can I change the background color for items or cells that contains a specified string
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("%0 contains 'hi'"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0)); exlist1.Columns().Add(""); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.Add("Item 4 - child"); } |
312 |
Is there any option to change the fore color for cells or items that ends with a specified string
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("%0 endwith '22'"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); exlist1.Columns().Add(""); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 1.22"); com_Items.Add("Item 2.22"); } |
311 |
How can I highlight the cells or items that starts with a specified string
public void init() { COM com_ConditionalFormat,com_Items; anytype var_ConditionalFormat,var_Items; ; super(); var_ConditionalFormat = COM::createFromObject(exlist1.ConditionalFormats()).Add("%0 startwith 'C'"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Underline(true); exlist1.Columns().Add(""); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("CItem 2"); com_Items.Add("Item 3"); com_Items.Add("Item 4"); } |
310 |
How can I change the foreground color for a particular column
|
309 |
How can I change the background color for a particular column
|
308 |
How can I display the column's header using multiple lines
public void init() { ; super(); exlist1.HeaderHeight(128); exlist1.HeaderSingleLine(false); COM::createFromVariant(exlist1.Columns().Add("This is just a column that should break the header.")).Width(32); exlist1.Columns().Add("This is just another column that should break the header."); } |
307 |
How can I align the text/caption on the scroll bar
public void init() { ; super(); exlist1.ScrollPartCaption(1/*exHScroll*/,512/*exLowerBackPart*/,"left"); exlist1.ScrollPartCaptionAlignment(1/*exHScroll*/,512/*exLowerBackPart*/,0/*LeftAlignment*/); exlist1.ScrollPartCaption(1/*exHScroll*/,128/*exUpperBackPart*/,"right"); exlist1.ScrollPartCaptionAlignment(1/*exHScroll*/,128/*exUpperBackPart*/,2/*RightAlignment*/); exlist1.ColumnAutoResize(false); exlist1.Columns().Add(1); exlist1.Columns().Add(2); exlist1.Columns().Add(3); exlist1.Columns().Add(4); exlist1.Columns().Add(5); exlist1.Columns().Add(6); } |
306 |
How do I select the next row/item
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.Columns().Add("Column"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.Add("Item 1"); com_Items.Add("Item 2"); com_Items.Add("Item 3"); com_Items.SelectItem(com_Items.NextVisibleItem(com_Items.FocusItem()),true); } |
305 |
How do I enable resizing ( changing the height ) the items at runtime
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.ItemsAllowSizing(-1/*exResizeItem*/); exlist1.DrawGridLines(1/*exHLines*/); exlist1.ScrollBySingleLine(true); exlist1.Columns().Add("Column"); exlist1.Items().Add("Item 1"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemHeight(com_Items.Add("Item 2"),48); exlist1.Items().Add("Item 3"); exlist1.Items().Add("Item 4"); } |
304 |
How do I enable resizing all the items at runtime
public void init() { COM com_Items; anytype var_Items; ; super(); exlist1.ItemsAllowSizing(1/*exResizeAllItems*/); exlist1.DrawGridLines(1/*exHLines*/); exlist1.Columns().Add("Column"); exlist1.Items().Add("Item 1"); var_Items = exlist1.Items(); com_Items = var_Items; com_Items.ItemHeight(com_Items.Add("Item 2"),48); exlist1.Items().Add("Item 3"); } |
303 |
How can I remove the filter
|
302 |
How do I change the control's border, using your EBN files
public void init() { ; super(); exlist1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exlist1.Appearance(16777216); } |
301 |
Can I change the style for break or divider line
|